package com.d0304;
    class  Mons{
        int Hp;
        int Lv;
        public int Mons(int lv) {
            this.Lv = lv;
            Hp = Lv * 1000;
            return Hp;
        }
    }
 class Hero {
    int Lv;
    int exp;
    int blood;
    public Hero(){
        this.exp=0;
        this.Lv=3;
        this.blood= 25;
    }
    public void hit(int Hp){
        System.out.println("打了一次怪物还剩"+(Hp-this.blood)+"血");
    }
    public static void main(String[] args) {
        Mons gwu = new Mons();
        int Hp = gwu.Mons(5);
        Hero hero =new Hero();
        hero.hit(Hp);
    }
}